package com.aaa.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Change implements Serializable {
    private Integer c_id;
    private String c_name;
    private double c_yield;
    private BigDecimal c_earnings;
    private BigDecimal c_amount;
    private Integer h_id;
    private String h_deadline;
    private String h_day;

    public Change(String c_name, double c_yield, BigDecimal c_earnings, BigDecimal c_amount, String h_deadline, String h_day, Integer c_id) {
        this.c_id = c_id;
        this.c_name = c_name;
        this.c_yield = c_yield;
        this.c_earnings = c_earnings;
        this.c_amount = c_amount;
        this.h_deadline = h_deadline;
        this.h_day = h_day;
    }

    public Change(String c_name, double c_yield, BigDecimal c_earnings, BigDecimal c_amount, Integer h_id) {
        this.c_name = c_name;
        this.c_yield = c_yield;
        this.c_earnings = c_earnings;
        this.c_amount = c_amount;
        this.h_id = h_id;
    }
}
